Accueil
Python
Pandas
Turtle
QtDesigner
Exercice N°8
Enoncer
Écrire un programme en python qui permet de dessiner le drapeau de la Palestine.
Correction:
from turtle import *
fillcolor('red')
begin_fill()
lt(45)
fd(100)
lt(90)
fd(100)
lt(135)
fd(142)
end_fill()
fillcolor('green')
begin_fill()
lt(90)
fd(300)
lt(90)
fd(47)
lt(90)
fd(253)
end_fill()
bk(253)
rt(90)
fd(47)
lt(90)
fd(251)
fillcolor('black')
begin_fill()
bk(251)
rt(90)
fd(48)
lt(90)
fd(300)
end_fill()
Introduction
Exercice N°1
Exercice N°2
Exercice N°3
Exercice N°4
Exercice N°5
Exercice N°6
Exercice N°7
Exercice N°8
Exercice N°9
Exercice N°10
Exercice N°11
Exercice N°12
Exercice N°13
Exercice N°14
Exercice N°15
Exercice N°16
Exercice N°17
Exercice N°18
Exercice N°19
Exercice N°20
Exercice N°21
Exercice N°22
Exercice N°23
Exercice N°24
Exercice N°25
Exercice N°20